class SystemAddressListVo {

  List<SystemAddressItem>? data;

  SystemAddressListVo({this.data});

  SystemAddressListVo.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new SystemAddressItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SystemAddressItem {
  int? id;
  String? title;
  int? parentId;
  String? code;
  int? level;

  SystemAddressItem({this.id, this.title, this.parentId, this.code, this.level});

  SystemAddressItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    parentId = json['parent_id'];
    code = json['code'];
    level = json['level'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['parent_id'] = this.parentId;
    data['code'] = this.code;
    data['level'] = this.level;
    return data;
  }
}
